﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jb.Domain;
using Jb.Search.Searcher;

namespace Jb.Search
{
    public class SearcherFactory
    {
        public static ISearcher GetSearcher(Type type)
        {
            if (type == typeof(Resume))
                return new ResumeSearcher();
            else if (type == typeof(Job))
                return new JobSearcher();

            return null;
        }
    }
}
